package com.ruoyi.ade.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.ade.mapper.AdeLabResultMapper;
import com.ruoyi.ade.domain.AdeLabResult;
import com.ruoyi.ade.service.IAdeLabResultService;

/**
 * AdeLabResultService业务层处理
 * 
 * @author wxh
 * @date 2025-06-29
 */
@Service
public class AdeLabResultServiceImpl implements IAdeLabResultService 
{
    @Autowired
    private AdeLabResultMapper adeLabResultMapper;

    /**
     * 查询AdeLabResult
     * 
     * @param id AdeLabResult主键
     * @return AdeLabResult
     */
    @Override
    public AdeLabResult selectAdeLabResultById(Long id)
    {
        return adeLabResultMapper.selectAdeLabResultById(id);
    }

    /**
     * 查询AdeLabResult列表
     * 
     * @param adeLabResult AdeLabResult
     * @return AdeLabResult
     */
    @Override
    public List<AdeLabResult> selectAdeLabResultList(AdeLabResult adeLabResult)
    {
        return adeLabResultMapper.selectAdeLabResultList(adeLabResult);
    }

    /**
     * 新增AdeLabResult
     * 
     * @param adeLabResult AdeLabResult
     * @return 结果
     */
    @Override
    public int insertAdeLabResult(AdeLabResult adeLabResult)
    {
        adeLabResult.setCreateTime(DateUtils.getNowDate());
        return adeLabResultMapper.insertAdeLabResult(adeLabResult);
    }

    /**
     * 修改AdeLabResult
     * 
     * @param adeLabResult AdeLabResult
     * @return 结果
     */
    @Override
    public int updateAdeLabResult(AdeLabResult adeLabResult)
    {
        return adeLabResultMapper.updateAdeLabResult(adeLabResult);
    }

    /**
     * 批量删除AdeLabResult
     * 
     * @param ids 需要删除的AdeLabResult主键
     * @return 结果
     */
    @Override
    public int deleteAdeLabResultByIds(Long[] ids)
    {
        return adeLabResultMapper.deleteAdeLabResultByIds(ids);
    }

    /**
     * 删除AdeLabResult信息
     * 
     * @param id AdeLabResult主键
     * @return 结果
     */
    @Override
    public int deleteAdeLabResultById(Long id)
    {
        return adeLabResultMapper.deleteAdeLabResultById(id);
    }
}
